package chapter10;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/4/13 12:52
 */
public class Parcel1 {
    public static void main(String[] args) {
        Parcel1 parcel1 = new Parcel1();
        parcel1.ship("Tasmania");
    }

    public void ship(String dest) {
        Content content = new Content();
        Destination destination = new Destination(dest);
        System.out.println(destination.readLabel());
    }

    class Content {
        private int anInt = 11;

        private int value() {
            return anInt;
        }
    }

    class Destination {
        private String label;

        public Destination(String label) {
            this.label = label;
        }

        public String readLabel() {
            return label;
        }
    }
}
